#pragma once

#ifndef GAME_SPRITE_H
#define GAME_SPRITE_H

#include "graphics.h"


class GameSprite
{

public:
	enum States
	{
		Idle, WalkRight,
	};

	GameSprite();
	GameSprite(Image image, XMFLOAT2 pos);

	Image getImage(){return myImage;};
	void setImage(Image image){myImage = image;};
	
	XMFLOAT2 getPosition(){return position;};
	void setPosition(XMFLOAT2 p){position = p;};
	
	XMFLOAT2 getScale(){return scale;};
	void setScale(XMFLOAT2 s){scale = s;};
	
	float getRotation(){return rotation;};
	void setRotation(float r){rotation = r;};

	RECT getRactangle(){return rectangle;};

	bool IsColliding(GameSprite* sprite);



	virtual void Update(double time);

	virtual void Draw(Graphics2D* graphics);

private:

	Image myImage;
	XMFLOAT2 position;
	XMFLOAT2 scale;
	float rotation;
	RECT rectangle;
	

};

#endif